import request from '@/util/request'

export default {

    findCars(){
        return request({
            url: '/car/list',
            method: 'get',
        })
    },

    findByPage(page,pageSize){
        return request({
            url:`/car/findByPage/${page}/${pageSize}`,
            method:"get"
        })
    },

    search(page,pageSize,data){
        return request({
            url:`/car/search/${page}/${pageSize}`,
            method:"post",
            data
        })
    },


    save(url,method,data){
        return request({
            url,
            method,
            data
        })
    },

    deleteCar(ids){
        return request({
            url:`/car/delete/${ids}`,
            method:"delete"
        })
    },
}
